home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 31 / Amiga Format CD31 (1998-09-02)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1998-10].iso / -seriously_amiga- / hardware / transadf / source / main.h < prev    next >
C/C++ Source or Header  |  1998-07-20  |  2KB  |  87 lines

  1. /* main.h - Header file for main.c
  2. ** Copyright (C) 1997,1998 Karl J. Ots
  3. ** 
  4. ** This program is free software; you can redistribute it and/or modify
  5. ** it under the terms of the GNU General Public License as published by
  6. ** the Free Software Foundation; either version 2 of the License, or
  7. ** (at your option) any later version.
  8. ** 
  9. ** This program is distributed in the hope that it will be useful,
  10. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. ** GNU General Public License for more details.
  13. ** 
  14. ** You should have received a copy of the GNU General Public License
  15. ** along with this program; if not, write to the Free Software
  16. ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  17. */
  18.  
  19. #ifndef TRANSADF_MAIN_H
  20. #define TRANSADF_MAIN_H
  21.  
  22.  
  23. #ifndef EXEC_TYPES_H
  24. #include <exec/types.h>
  25. #endif /* EXEC_TYPES_H */
  26.  
  27. #ifndef DEVICES_TRACKDISK_H
  28. #include <devices/trackdisk.h>
  29. #endif /* DEVICES_TRACKDISK_H */
  30.  
  31. #ifndef DOS_DOS_H
  32. #include <dos/dos.h>
  33. #endif /* DOS_DOS_H */
  34.  
  35. #ifdef COMPILE_RT
  36. #  ifndef EXEC_LIBRARIES_H
  37. #  include <exec/libraries.h>
  38. #  endif /* EXEC_LIBRARIES_H */
  39. extern struct Library *ZBase;
  40. #  include "z_pragmas.h"
  41. #endif /* COMPILE_RT */
  42.  
  43.  
  44. /*---------------------------------*/
  45. /* Global variables and structures */
  46. /*---------------------------------*/
  47.  
  48. /* Constant strings */
  49. extern const char breakText[];
  50.  
  51. /* Standard IO Handles */
  52. extern BPTR StdIn;
  53. extern BPTR StdOut;
  54. extern BPTR StdErr;
  55.  
  56. /* Program name */
  57. extern STRPTR ProgName;
  58.  
  59. /* This will be passed to the read/write routines */
  60. struct ADF_Packet {
  61.   /* Track Disk IO */
  62.   struct IOExtTD *diskReq;
  63.   ULONG  diskUnit;
  64.   
  65.   /* Amiga Disk File */
  66.   BPTR   ADFile;
  67.   STRPTR ADFileName;
  68.  
  69.   /* Track info */
  70.   ULONG  startTrack;
  71.   ULONG  endTrack;
  72.   
  73.   /* Verification */
  74.   ULONG  verify;
  75. };
  76.  
  77.  
  78. /*---------------------*/
  79. /* Function prototypes */
  80. /*---------------------*/
  81.  
  82. void initGlobals (void);
  83. void cleanExit (ULONG rc, LONG rc2);
  84.  
  85.  
  86. #endif /* TRANSADF_MAIN_H */
  87.